package com.example.hand.service;


import com.example.hand.dataobject.CarDetail;
import com.example.hand.dataobject.CarInfo;
import com.example.hand.form.CarListForm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface CarInfoService {

    //Page<CarInfo> findAll(Pageable pageable);

    CarDetail add(CarDetail carDetail);

    CarDetail update(CarDetail carDetail);

    void delete(Integer Id);

    CarDetail findOne(Integer Id);

    Page<CarInfo> findListCarInfo(final CarListForm params, Pageable pageable);
}
